<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>须弥社区 - 完整版</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        :root {
            --primary-color: #6c5ce7;
            --secondary-color: #a29bfe;
            --accent-color: #fd79a8;
            --danger-color: #e74c3c;
            --success-color: #2ecc71;
            --warning-color: #f39c12;
            --premium-color: #fdcb6e;
            --text-dark: #2d3436;
            --text-light: #636e72;
            --bg-light: #f5f6fa;
            --white: #ffffff;
            --border-color: #dfe6e9;
            --sidebar-bg: #2d3436;
            --sidebar-text: #b2bec3;
            --sidebar-active: #6c5ce7;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        body {
            background-color: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.6;
        }
        
        /* 登录页面样式 */
        .login-container {
            display: none;
            width: 100%;
            min-height: 100vh;
        }
        
        .login-left {
            flex: 1;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px;
            color: white;
        }
        
        .login-left h1 {
            font-size: 32px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .login-left p {
            font-size: 18px;
            text-align: center;
            max-width: 400px;
            margin-bottom: 30px;
        }
        
        .login-features {
            display: flex;
            flex-direction: column;
            gap: 20px;
            max-width: 400px;
        }
        
        .feature {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .feature-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .login-right {
            width: 450px;
            background-color: var(--white);
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 40px;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
        }
        
        .login-form {
            width: 100%;
        }
        
        .login-title {
            font-size: 28px;
            margin-bottom: 10px;
            color: var(--text-dark);
        }
        
        .login-subtitle {
            color: var(--text-light);
            margin-bottom: 30px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-dark);
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
        }
        
        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #5b4bd4;
        }
        
        .login-footer {
            text-align: center;
            margin-top: 20px;
            color: var(--text-light);
            font-size: 14px;
        }
        
        .alert {
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: none;
        }
        
        .alert-danger {
            background-color: rgba(231, 76, 60, 0.1);
            color: var(--danger-color);
            border: 1px solid rgba(231, 76, 60, 0.2);
        }
        
        /* 前端APP样式 */
        .container {
            max-width: 500px;
            margin: 0 auto;
            background-color: var(--white);
            min-height: 100vh;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
            position: relative;
            display: block;
        }
        
        /* 顶部导航 */
        .header {
            position: sticky;
            top: 0;
            background-color: var(--white);
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border-color);
            z-index: 100;
        }
        
        .logo {
            font-size: 20px;
            font-weight: bold;
            color: var(--primary-color);
        }
        
        .user-points {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .points {
            background-color: var(--primary-color);
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
        }
        
        .nav-icons {
            display: flex;
            gap: 15px;
        }
        
        .icon {
            font-size: 20px;
            color: var(--text-dark);
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-width: 500px;
            margin: 0 auto;
            background-color: var(--white);
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
            border-top: 1px solid var(--border-color);
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            color: var(--text-light);
        }
        
        .nav-item.active {
            color: var(--primary-color);
        }
        
        .nav-icon {
            font-size: 20px;
            margin-bottom: 3px;
        }
        
        /* 内容区域 */
        .content {
            padding: 15px;
            padding-bottom: 70px; /* 为底部导航留出空间 */
        }
        
        /* 卡片样式 */
        .card {
            background-color: var(--white);
            border-radius: 10px;
            box-shadow: var(--shadow);
            margin-bottom: 15px;
            overflow: hidden;
        }
        
        .card-header {
            padding: 12px 15px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid var(--border-color);
        }
        
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--secondary-color);
            margin-right: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        .user-info {
            flex: 1;
        }
        
        .username {
            font-weight: bold;
            margin-bottom: 3px;
        }
        
        .post-time {
            font-size: 12px;
            color: var(--text-light);
        }
        
        .card-body {
            padding: 15px;
        }
        
        .post-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .post-content {
            margin-bottom: 15px;
        }
        
        .post-image {
            width: 100%;
            border-radius: 8px;
            margin-bottom: 15px;
        }
        
        .post-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }
        
        .tag {
            background-color: var(--bg-light);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            color: var(--text-light);
        }
        
        .card-footer {
            padding: 10px 15px;
            display: flex;
            justify-content: space-around;
            border-top: 1px solid var(--border-color);
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--text-light);
            font-size: 14px;
        }
        
        /* 付费内容样式 */
        .premium-badge {
            background-color: var(--premium-color);
            color: var(--text-dark);
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            margin-left: 8px;
        }
        
        .premium-content {
            background-color: #fff9e6;
            border: 1px dashed var(--premium-color);
            border-radius: 8px;
            padding: 15px;
            margin: 15px 0;
            position: relative;
        }
        
        .premium-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(253, 203, 110, 0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-radius: 8px;
            color: var(--text-dark);
        }
        
        .premium-icon {
            font-size: 32px;
            margin-bottom: 10px;
        }
        
        .premium-text {
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .purchase-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .purchase-btn:hover {
            background-color: #5b4bd4;
        }
        
        .price-tag {
            background-color: var(--primary-color);
            color: white;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            margin-left: 8px;
        }
        
        .locked-content {
            background-color: var(--bg-light);
            border-radius: 8px;
            padding: 15px;
            margin: 15px 0;
            text-align: center;
            color: var(--text-light);
        }
        
        .reply-form {
            display: flex;
            margin-top: 10px;
            gap: 10px;
        }
        
        .reply-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            outline: none;
        }
        
        .reply-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
        }
        
        .download-section {
            background-color: var(--bg-light);
            border-radius: 8px;
            padding: 15px;
            margin: 15px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .download-info {
            display: flex;
            flex-direction: column;
        }
        
        .download-name {
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .download-size {
            font-size: 12px;
            color: var(--text-light);
        }
        
        .download-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .download-btn.premium {
            background-color: var(--premium-color);
            color: var(--text-dark);
        }
        
        /* 搜索栏 */
        .search-bar {
            background-color: var(--bg-light);
            border-radius: 20px;
            padding: 10px 15px;
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .search-input {
            flex: 1;
            border: none;
            background: transparent;
            outline: none;
            margin-left: 10px;
        }
        
        /* 社区圈子 */
        .communities-section {
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .see-all {
            font-size: 14px;
            color: var(--primary-color);
        }
        
        .communities-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
        
        .community-card {
            background-color: var(--white);
            border-radius: 10px;
            box-shadow: var(--shadow);
            padding: 15px;
            text-align: center;
        }
        
        .community-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--primary-color);
            margin: 0 auto 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
        }
        
        .community-name {
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .community-members {
            font-size: 12px;
            color: var(--text-light);
        }
        
        /* 后台管理系统样式 */
        .admin-container {
            display: none;
            min-height: 100vh;
        }
        
        /* 侧边栏样式 */
        .sidebar {
            width: 250px;
            background-color: var(--sidebar-bg);
            color: var(--sidebar-text);
            padding: 20px 0;
            transition: all 0.3s;
        }
        
        .admin-logo {
            padding: 0 20px 20px;
            border-bottom: 1px solid #3c4245;
            margin-bottom: 20px;
        }
        
        .admin-logo h1 {
            color: var(--white);
            font-size: 22px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .admin-logo span {
            color: var(--primary-color);
        }
        
        .nav-links {
            list-style: none;
        }
        
        .nav-links li {
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .nav-links li:hover {
            background-color: #3c4245;
            color: var(--white);
        }
        
        .nav-links li.active {
            background-color: var(--sidebar-active);
            color: var(--white);
        }
        
        .nav-links i {
            width: 20px;
            text-align: center;
        }
        
        /* 主内容区样式 */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        
        .top-bar {
            background-color: var(--white);
            padding: 15px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
            z-index: 100;
        }
        
        .admin-search-bar {
            background-color: var(--bg-light);
            border-radius: 20px;
            padding: 8px 15px;
            display: flex;
            align-items: center;
            width: 300px;
        }
        
        .admin-search-bar input {
            border: none;
            background: transparent;
            outline: none;
            margin-left: 10px;
            width: 100%;
        }
        
        .admin-user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .admin-user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        .logout-btn {
            background: none;
            border: none;
            color: var(--text-light);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            border-radius: 4px;
            transition: all 0.3s;
        }
        
        .logout-btn:hover {
            background-color: var(--bg-light);
            color: var(--danger-color);
        }
        
        .admin-content {
            padding: 30px;
            overflow-y: auto;
            flex: 1;
        }
        
        .page {
            display: none;
        }
        
        .page.active {
            display: block;
        }
        
        .page-title {
            font-size: 24px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        /* 数据概览样式 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background-color: var(--white);
            border-radius: 10px;
            padding: 20px;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
        }
        
        .stat-info {
            flex: 1;
        }
        
        .stat-value {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .stat-label {
            color: var(--text-light);
            font-size: 14px;
        }
        
        .stat-change {
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .positive {
            color: var(--success-color);
        }
        
        .negative {
            color: var(--danger-color);
        }
        
        /* 表格样式 */
        .table-container {
            overflow-x: auto;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        th {
            background-color: var(--bg-light);
            font-weight: 600;
            color: var(--text-light);
        }
        
        tr:hover {
            background-color: var(--bg-light);
        }
        
        .status {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
        }
        
        .status-active {
            background-color: rgba(46, 204, 113, 0.2);
            color: var(--success-color);
        }
        
        .status-banned {
            background-color: rgba(231, 76, 60, 0.2);
            color: var(--danger-color);
        }
        
        .status-pending {
            background-color: rgba(243, 156, 18, 0.2);
            color: var(--warning-color);
        }
        
        .btn-sm {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }
        
        .btn-primary-sm {
            background-color: var(--primary-color);
            color: white;
        }
        
        .btn-danger-sm {
            background-color: var(--danger-color);
            color: white;
        }
        
        .btn-success-sm {
            background-color: var(--success-color);
            color: white;
        }
        
        .btn-warning-sm {
            background-color: var(--warning-color);
            color: white;
        }
        
        .btn-sm:hover {
            opacity: 0.9;
        }
        
        .action-buttons {
            display: flex;
            gap: 5px;
        }
        
        /* 图表容器 */
        .charts-row {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .chart-container {
            background-color: var(--white);
            border-radius: 10px;
            padding: 20px;
            box-shadow: var(--shadow);
            height: 300px;
        }
        
        /* 管理员入口按钮 */
        .admin-entry {
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            z-index: 1000;
        }
        
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .charts-row {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .login-container {
                flex-direction: column;
            }
            
            .login-left {
                padding: 30px 20px;
            }
            
            .login-right {
                width: 100%;
            }
            
            .sidebar {
                width: 70px;
            }
            
            .admin-logo h1 span, .nav-links li span {
                display: none;
            }
            
            .nav-links li {
                justify-content: center;
                padding: 15px;
            }
            
            .nav-links li i {
                font-size: 20px;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 前端APP -->
    <div class="container" id="app-container">
        <!-- 顶部导航 -->
        <div class="header">
            <div class="logo">须弥社区</div>
            <div class="user-points">
                <div class="points">积分: 1580</div>
                <div class="points">原石: 320</div>
            </div>
            <div class="nav-icons">
                <span class="icon">🔔</span>
                <span class="icon">✉️</span>
            </div>
        </div>
        
        <!-- 内容区域 -->
        <div class="content">
            <!-- 搜索栏 -->
            <div class="search-bar">
                <span>🔍</span>
                <input type="text" class="search-input" placeholder="搜索内容、用户或圈子">
            </div>
            
            <!-- 动态流 -->
            <div class="page active" id="home-page">
                <!-- 付费阅读帖子 -->
                <div class="card">
                    <div class="card-header">
                        <div class="avatar">角</div>
                        <div class="user-info">
                            <div class="username">角色攻略组 <span class="premium-badge">付费阅读</span></div>
                            <div class="post-time">3小时前 · 原神</div>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="post-title">新角色「那维莱特」深度机制解析与配队指南</div>
                        <div class="post-content">
                            <p>新角色那维莱特已经上线，本文将详细解析他的技能机制、输出手法和最佳配队方案...</p>
                            <div class="premium-content">
                                <div class="premium-overlay" id="premium-overlay-1">
                                    <div class="premium-icon">🔒</div>
                                    <div class="premium-text">付费内容</div>
                                    <div style="margin-bottom: 10px;">支付 5 原石解锁完整内容</div>
                                    <button class="purchase-btn" onclick="unlockContent('premium-overlay-1')">立即解锁</button>
                                </div>
                                <h3>核心机制解析</h3>
                                <p>那维莱特的元素战技「宣叙断定」具有独特的蓄力机制，可以在蓄力期间获得护盾...</p>
                                <h3>输出循环详解</h3>
                                <p>最佳输出循环为：元素战技 → 重击蓄力 → 元素爆发 → 重击蓄力...</p>
                                <h3>配队推荐</h3>
                                <p>1. 蒸发队：那维莱特 + 行秋 + 班尼特 + 万叶</p>
                                <p>2. 纯水队：那维莱特 + 莫娜 + 心海 + 温迪</p>
                            </div>
                        </div>
                        <div class="post-tags">
                            <span class="tag">#原神</span>
                            <span class="tag">#那维莱特</span>
                            <span class="tag">#角色攻略</span>
                        </div>
                    </div>
                    <div class="card-footer">
                        <div class="action-btn">👍 342</div>
                        <div class="action-btn">💬 128</div>
                        <div class="action-btn">🔄 56</div>
                    </div>
                </div>
                
                <!-- 积分阅读帖子 -->
                <div class="card">
                    <div class="card-header">
                        <div class="avatar">艺</div>
                        <div class="user-info">
                            <div class="username">艺术设定集 <span class="premium-badge">积分阅读</span> <span class="price-tag">50积分</span></div>
                            <div class="post-time">1天前 · 星穹铁道</div>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="post-title">「仙舟罗浮」场景原画与设计思路全集</div>
                        <div class="post-content">
                            <p>本文收录了仙舟罗浮场景的所有原画设计稿，包含早期概念设计和最终成品...</p>
                            <div class="locked-content" id="locked-content-1">
                                <div class="premium-icon">🔒</div>
                                <div class="premium-text">需要 50 积分解锁</div>
                                <p style="margin: 10px 0; font-size: 14px;">消耗积分后即可查看完整内容</p>
                                <button class="purchase-btn" onclick="unlockWithPoints('locked-content-1')">支付积分</button>
                            </div>
                        </div>
                        <div class="post-tags">
                            <span class="tag">#星穹铁道</span>
                            <span class="tag">#美术设计</span>
                            <span class="tag">#仙舟罗浮</span>
                        </div>
                    </div>
                    <div class="card-footer">
                        <div class="action-btn">👍 289</div>
                        <div class="action-btn">💬 76</div>
                        <div class="action-btn">🔄 32</div>
                    </div>
                </div>
                
                <!-- 回复阅读帖子 -->
                <div class="card">
                    <div class="card-header">
                        <div class="avatar">剧</div>
                        <div class="user-info">
                            <div class="username">剧情解析组 <span class="premium-badge">回复阅读</span></div>
                            <div class="post-time">2天前 · 崩坏3</div>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="post-title">第二部主线剧情深度分析与未来走向预测</div>
                        <div class="post-content">
                            <p>崩坏3第二部主线剧情已经展开，本文将分析新世界观设定和角色关系...</p>
                            <div class="locked-content" id="locked-content-2">
                                <div class="premium-icon">💬</div>
                                <div class="premium-text">回复后查看完整内容</div>
                                <p style="margin: 10px 0; font-size: 14px;">请回复任意内容解锁隐藏内容</p>
                                <div class="reply-form">
                                    <input type="text" class="reply-input" placeholder="输入回复内容...">
                                    <button class="reply-btn" onclick="unlockWithReply('locked-content-2')">回复</button>
                                </div>
                            </div>
                        </div>
                        <div class="post-tags">
                            <span class="tag">#崩坏3</span>
                            <span class="tag">#剧情分析</span>
                            <span class="tag">#第二部</span>
                        </div>
                    </div>
                    <div class="card-footer">
                        <div class="action-btn">👍 421</div>
                        <div class="action-btn">💬 89</div>
                        <div class="action-btn">🔄 45</div>
                    </div>
                </div>
                
                <!-- 付费下载帖子 -->
                <div class="card">
                    <div class="card-header">
                        <div class="avatar">资</div>
                        <div class="user-info">
                            <div class="username">资源分享站 <span class="premium-badge">付费下载</span></div>
                            <div class="post-time">3天前 · 综合</div>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="post-title">米哈游游戏全角色高清立绘合集（2024最新版）</div>
                        <div class="post-content">
                            <p>本资源包收录了米哈游旗下所有游戏角色的高清立绘，包含原神、崩坏3、星穹铁道等，全部为PNG透明背景格式，适合用于创作和收藏。</p>
                            <div class="download-section">
                                <div class="download-info">
                                    <div class="download-name">米哈游全角色立绘合集.zip</div>
                                    <div class="download-size">文件大小: 2.3GB | 包含1200+张图片</div>
                                </div>
                                <button class="download-btn premium" onclick="purchaseDownload()">15原石下载</button>
                            </div>
                        </div>
                        <div class="post-tags">
                            <span class="tag">#资源下载</span>
                            <span class="tag">#高清立绘</span>
                            <span class="tag">#米哈游</span>
                        </div>
                    </div>
                    <div class="card-footer">
                        <div class="action-btn">👍 512</div>
                        <div class="action-btn">💬 103</div>
                        <div class="action-btn">🔄 67</div>
                    </div>
                </div>
            </div>
            
            <!-- 社区圈子页面 -->
            <div class="page" id="communities-page">
                <div class="communities-section">
                    <h2 class="section-title">推荐圈子 <a href="#" class="see-all">查看全部</a></h2>
                    <div class="communities-grid">
                        <div class="community-card">
                            <div class="community-icon">原</div>
                            <div class="community-name">原神</div>
                            <div class="community-members">12.5万成员</div>
                        </div>
                        <div class="community-card">
                            <div class="community-icon">星</div>
                            <div class="community-name">星穹铁道</div>
                            <div class="community-members">8.7万成员</div>
                        </div>
                        <div class="community-card">
                            <div class="community-icon">崩</div>
                            <div class="community-name">崩坏3</div>
                            <div class="community-members">6.3万成员</div>
                        </div>
                        <div class="community-card">
                            <div class="community-icon">未</div>
                            <div class="community-name">未定事件簿</div>
                            <div class="community-members">4.2万成员</div>
                        </div>
                    </div>
                </div>
                
                <div class="communities-section">
                    <h2 class="section-title">热门话题</h2>
                    <div class="card">
                        <div class="card-body">
                            <div class="post-title">#新角色配队讨论#</div>
                            <div class="post-content">新版本即将上线的新角色应该如何配队？大家有什么想法？</div>
                            <div class="post-tags">
                                <span class="tag">#原神</span>
                                <span class="tag">#配队</span>
                                <span class="tag">#新角色</span>
                            </div>
                        </div>
                        <div class="card-footer">
                            <div class="action-btn">🔥 342 参与</div>
                        </div>
                    </div>
                    
                    <div class="card">
                        <div class="card-body">
                            <div class="post-title">#剧情分析#</div>
                            <div class="post-content">关于枫丹主线剧情的深度分析和预测</div>
                            <div class="post-tags">
                                <span class="tag">#剧情</span>
                                <span class="tag">#分析</span>
                                <span class="tag">#枫丹</span>
                            </div>
                        </div>
                        <div class="card-footer">
                            <div class="action-btn">🔥 215 参与</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 消息页面 -->
            <div class="page" id="messages-page">
                <div class="card">
                    <div class="card-header">
                        <div class="avatar">系</div>
                        <div class="user-info">
                            <div class="username">系统通知</div>
                            <div class="post-time">您关注的圈子有新的活动</div>
                        </div>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-header">
                        <div class="avatar">原</div>
                        <div class="user-info">
                            <div class="username">原神官方</div>
                            <div class="post-time">新版本福利活动即将开启</div>
                        </div>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-header">
                        <div class="avatar">凯</div>
                        <div class="user-info">
                            <div class="username">凯亚</div>
                            <div class="post-time">你分享的攻略很有用，谢谢！</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 个人中心页面 -->
            <div class="page" id="profile-page">
                <div class="card">
                    <div class="card-body" style="text-align: center;">
                        <div class="avatar" style="width: 80px; height: 80px; margin: 0 auto 15px;">旅行者</div>
                        <div class="username" style="font-size: 20px;">旅行者</div>
                        <div style="color: var(--text-light); margin-bottom: 20px;">Lv.55 | 活跃天数 328</div>
                        <div style="display: flex; justify-content: space-around; margin-bottom: 20px;">
                            <div style="text-align: center;">
                                <div style="font-weight: bold;">128</div>
                                <div style="font-size: 12px; color: var(--text-light);">关注</div>
                            </div>
                            <div style="text-align: center;">
                                <div style="font-weight: bold;">1.2k</div>
                                <div style="font-size: 12px; color: var(--text-light);">粉丝</div>
                            </div>
                            <div style="text-align: center;">
                                <div style="font-weight: bold;">356</div>
                                <div style="font-size: 12px; color: var(--text-light);">帖子</div>
                            </div>
                        </div>
                        <div style="display: flex; gap: 10px; justify-content: center;">
                            <div class="points">积分: 1580</div>
                            <div class="points">原石: 320</div>
                        </div>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-body">
                        <div style="display: flex; justify-content: space-between; margin-bottom: 15px;">
                            <div>我的收藏</div>
                            <div>></div>
                        </div>
                        <div style="display: flex; justify-content: space-between; margin-bottom: 15px;">
                            <div>我的购买记录</div>
                            <div>></div>
                        </div>
                        <div style="display: flex; justify-content: space-between; margin-bottom: 15px;">
                            <div>积分明细</div>
                            <div>></div>
                        </div>
                        <div style="display: flex; justify-content: space-between; margin-bottom: 15px;">
                            <div>我的圈子</div>
                            <div>></div>
                        </div>
                        <div style="display: flex; justify-content: space-between; margin-bottom: 15px;">
                            <div>浏览历史</div>
                            <div>></div>
                        </div>
                        <div style="display: flex; justify-content: space-between; margin-bottom: 15px;">
                            <div>管理员入口</div>
                            <div>></div>
                        </div>
                        <div style="display: flex; justify-content: space-between;">
                            <div>设置</div>
                            <div>></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 底部导航 -->
        <div class="bottom-nav">
            <div class="nav-item active" data-page="home-page">
                <div class="nav-icon">🏠</div>
                <div>首页</div>
            </div>
            <div class="nav-item" data-page="communities-page">
                <div class="nav-icon">👥</div>
                <div>圈子</div>
            </div>
            <div class="nav-item" data-page="messages-page">
                <div class="nav-icon">💬</div>
                <div>消息</div>
            </div>
            <div class="nav-item" data-page="profile-page">
                <div class="nav-icon">👤</div>
                <div>我的</div>
            </div>
        </div>
        
        <!-- 管理员入口按钮 -->
        <div class="admin-entry" id="admin-entry-btn">
            <i class="fas fa-cog"></i>
        </div>
    </div>

    <!-- 登录页面 -->
    <div class="login-container" id="login-page">
        <div class="login-left">
            <h1><i class="fas fa-gem"></i> 须弥社区</h1>
            <p>管理员后台管理系统</p>
            <div class="login-features">
                <div class="feature">
                    <div class="feature-icon">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <div>
                        <h3>安全可靠</h3>
                        <p>多重身份验证和权限控制，保障系统安全</p>
                    </div>
                </div>
                <div class="feature">
                    <div class="feature-icon">
                        <i class="fas fa-chart-line"></i>
                    </div>
                    <div>
                        <h3>数据洞察</h3>
                        <p>直观的数据可视化，帮助您做出明智决策</p>
                    </div>
                </div>
                <div class="feature">
                    <div class="feature-icon">
                        <i class="fas fa-cogs"></i>
                    </div>
                    <div>
                        <h3>全面管理</h3>
                        <p>用户、内容、财务一站式管理平台</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="login-right">
            <div class="login-form">
                <h2 class="login-title">管理员登录</h2>
                <p class="login-subtitle">请输入您的管理员账号和密码</p>
                
                <div class="alert alert-danger" id="login-alert">
                    <i class="fas fa-exclamation-circle"></i> 用户名或密码错误，请重试
                </div>
                
                <form id="admin-login-form">
                    <div class="form-group">
                        <label class="form-label">管理员账号</label>
                        <input type="text" class="form-control" id="username" placeholder="请输入管理员账号" required>
                    </div>
                    <div class="form-group">
                        <label class="form-label">密码</label>
                        <input type="password" class="form-control" id="password" placeholder="请输入密码" required>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-primary">登录系统</button>
                    </div>
                </form>
                
                <div class="login-footer">
                    <p>© 2023 须弥社区 - 后台管理系统</p>
                </div>
            </div>
        </div>
    </div>

    <!-- 后台管理系统 -->
    <div class="admin-container" id="admin-container">
        <!-- 侧边栏 -->
        <div class="sidebar">
            <div class="admin-logo">
                <h1><i class="fas fa-gem"></i> <span>须弥<span>社区</span></span></h1>
            </div>
            <ul class="nav-links">
                <li class="active" data-page="dashboard-page">
                    <i class="fas fa-tachometer-alt"></i>
                    <span>数据概览</span>
                </li>
                <li data-page="users-page">
                    <i class="fas fa-users"></i>
                    <span>用户管理</span>
                </li>
                <li data-page="content-page">
                    <i class="fas fa-file-alt"></i>
                    <span>内容管理</span>
                </li>
                <li data-page="finance-page">
                    <i class="fas fa-coins"></i>
                    <span>财务管理</span>
                </li>
                <li data-page="reports-page">
                    <i class="fas fa-chart-bar"></i>
                    <span>数据报表</span>
                </li>
                <li data-page="settings-page">
                    <i class="fas fa-cog"></i>
                    <span>系统设置</span>
                </li>
            </ul>
        </div>

        <!-- 主内容区 -->
        <div class="main-content">
            <!-- 顶部栏 -->
            <div class="top-bar">
                <div class="admin-search-bar">
                    <i class="fas fa-search"></i>
                    <input type="text" placeholder="搜索...">
                </div>
                <div class="admin-user-info">
                    <div class="notifications">
                        <i class="fas fa-bell"></i>
                    </div>
                    <div class="admin-user-avatar">管</div>
                    <div class="user-details">
                        <div class="user-name">管理员</div>
                        <div class="user-role">超级管理员</div>
                    </div>
                    <button class="logout-btn" id="admin-logout-btn">
                        <i class="fas fa-sign-out-alt"></i> 退出
                    </button>
                </div>
            </div>

            <!-- 内容区域 -->
            <div class="admin-content">
                <!-- 数据概览页面 -->
                <div class="page active" id="dashboard-page">
                    <h2 class="page-title">数据概览</h2>
                    
                    <div class="stats-grid">
                        <div class="stat-card">
                            <div class="stat-icon" style="background-color: var(--primary-color);">
                                <i class="fas fa-users"></i>
                            </div>
                            <div class="stat-info">
                                <div class="stat-value">12,584</div>
                                <div class="stat-label">总用户数</div>
                                <div class="stat-change positive">
                                    <i class="fas fa-arrow-up"></i> 5.2% 较上月
                                </div>
                            </div>
                        </div>
                        
                        <div class="stat-card">
                            <div class="stat-icon" style="background-color: var(--success-color);">
                                <i class="fas fa-file-alt"></i>
                            </div>
                            <div class="stat-info">
                                <div class="stat-value">3,842</div>
                                <div class="stat-label">今日发帖</div>
                                <div class="stat-change positive">
                                    <i class="fas fa-arrow-up"></i> 12.7% 较昨日
                                </div>
                            </div>
                        </div>
                        
                        <div class="stat-card">
                            <div class="stat-icon" style="background-color: var(--warning-color);">
                                <i class="fas fa-coins"></i>
                            </div>
                            <div class="stat-info">
                                <div class="stat-value">¥8,562</div>
                                <div class="stat-label">今日收入</div>
                                <div class="stat-change positive">
                                    <i class="fas fa-arrow-up"></i> 3.4% 较昨日
                                </div>
                            </div>
                        </div>
                        
                        <div class="stat-card">
                            <div class="stat-icon" style="background-color: var(--accent-color);">
                                <i class="fas fa-comments"></i>
                            </div>
                            <div class="stat-info">
                                <div class="stat-value">24,693</div>
                                <div class="stat-label">今日互动</div>
                                <div class="stat-change negative">
                                    <i class="fas fa-arrow-down"></i> 2.1% 较昨日
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="charts-row">
                        <div class="chart-container">
                            <canvas id="trafficChart"></canvas>
                        </div>
                        <div class="chart-container">
                            <canvas id="contentChart"></canvas>
                        </div>
                    </div>
                    
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">最近活动</div>
                            <button class="btn-primary-sm">查看全部</button>
                        </div>
                        <div class="card-body">
                            <div class="table-container">
                                <table>
                                    <thead>
                                        <tr>
                                            <th>用户</th>
                                            <th>行为</th>
                                            <th>内容</th>
                                            <th>时间</th>
                                            <th>状态</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>旅行者</td>
                                            <td>发布帖子</td>
                                            <td>新角色「那维莱特」深度机制解析...</td>
                                            <td>2023-11-05 14:23</td>
                                            <td><span class="status status-active">正常</span></td>
                                        </tr>
                                        <tr>
                                            <td>派蒙</td>
                                            <td>购买内容</td>
                                            <td>付费阅读「枫丹剧情预测」</td>
                                            <td>2023-11-05 13:45</td>
                                            <td><span class="status status-active">已完成</span></td>
                                        </tr>
                                        <tr>
                                            <td>凯亚</td>
                                            <td>账号封禁</td>
                                            <td>违反社区规定第3条</td>
                                            <td>2023-11-05 12:17</td>
                                            <td><span class="status status-banned">已封禁</span></td>
                                        </tr>
                                        <tr>
                                            <td>甘雨</td>
                                            <td>提现申请</td>
                                            <td>金额：¥1,200</td>
                                            <td>2023-11-05 11:32</td>
                                            <td><span class="status status-pending">审核中</span></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 用户管理页面 -->
                <div class="page" id="users-page">
                    <h2 class="page-title">用户管理</h2>
                    
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">用户列表</div>
                            <button class="btn-primary-sm">导出数据</button>
                        </div>
                        <div class="card-body">
                            <div class="table-container">
                                <table>
                                    <thead>
                                        <tr>
                                            <th>ID</th>
                                            <th>用户名</th>
                                            <th>邮箱</th>
                                            <th>注册时间</th>
                                            <th>等级</th>
                                            <th>状态</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>10001</td>
                                            <td>旅行者</td>
                                            <td>traveler@example.com</td>
                                            <td>2023-05-12</td>
                                            <td>Lv.55</td>
                                            <td><span class="status status-active">正常</span></td>
                                            <td>
                                                <div class="action-buttons">
                                                    <button class="btn-sm btn-primary-sm">查看</button>
                                                    <button class="btn-sm btn-warning-sm">编辑</button>
                                                    <button class="btn-sm btn-danger-sm">封禁</button>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>10002</td>
                                            <td>派蒙</td>
                                            <td>paimon@example.com</td>
                                            <td>2023-06-08</td>
                                            <td>Lv.48</td>
                                            <td><span class="status status-active">正常</span></td>
                                            <td>
                                                <div class="action-buttons">
                                                    <button class="btn-sm btn-primary-sm">查看</button>
                                                    <button class="btn-sm btn-warning-sm">编辑</button>
                                                    <button class="btn-sm btn-danger-sm">封禁</button>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>10003</td>
                                            <td>凯亚</td>
                                            <td>kaeya@example.com</td>
                                            <td>2023-07-15</td>
                                            <td>Lv.42</td>
                                            <td><span class="status status-banned">已封禁</span></td>
                                            <td>
                                                <div class="action-buttons">
                                                    <button class="btn-sm btn-primary-sm">查看</button>
                                                    <button class="btn-sm btn-success-sm">解封</button>
                                                </div>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 内容管理页面 -->
                <div class="page" id="content-page">
                    <h2 class="page-title">内容管理</h2>
                    
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">内容列表</div>
                            <div>
                                <button class="btn-primary-sm">批量通过</button>
                                <button class="btn-danger-sm">批量删除</button>
                            </div>
                        </div>
                        <div class="card-body">
                            <div class="table-container">
                                <table>
                                    <thead>
                                        <tr>
                                            <th width="50"><input type="checkbox"></th>
                                            <th>标题</th>
                                            <th>作者</th>
                                            <th>类型</th>
                                            <th>发布时间</th>
                                            <th>状态</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td><input type="checkbox"></td>
                                            <td>新角色「那维莱特」深度机制解析与配队指南</td>
                                            <td>旅行者</td>
                                            <td>付费阅读</td>
                                            <td>2023-11-05 14:23</td>
                                            <td><span class="status status-active">已通过</span></td>
                                            <td>
                                                <div class="action-buttons">
                                                    <button class="btn-sm btn-primary-sm">查看</button>
                                                    <button class="btn-sm btn-success-sm">置顶</button>
                                                    <button class="btn-sm btn-danger-sm">删除</button>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td><input type="checkbox"></td>
                                            <td>「仙舟罗浮」场景原画与设计思路全集</td>
                                            <td>艺术设定集</td>
                                            <td>积分阅读</td>
                                            <td>2023-11-04 09:15</td>
                                            <td><span class="status status-active">已通过</span></td>
                                            <td>
                                                <div class="action-buttons">
                                                    <button class="btn-sm btn-primary-sm">查看</button>
                                                    <button class="btn-sm btn-success-sm">置顶</button>
                                                    <button class="btn-sm btn-danger-sm">删除</button>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td><input type="checkbox"></td>
                                            <td>第二部主线剧情深度分析与未来走向预测</td>
                                            <td>剧情解析组</td>
                                            <td>回复可见</td>
                                            <td>2023-11-03 16:42</td>
                                            <td><span class="status status-pending">待审核</span></td>
                                            <td>
                                                <div class="action-buttons">
                                                    <button class="btn-sm btn-primary-sm">查看</button>
                                                    <button class="btn-sm btn-success-sm">通过</button>
                                                    <button class="btn-sm btn-danger-sm">拒绝</button>
                                                </div>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 财务管理页面 -->
                <div class="page" id="finance-page">
                    <h2 class="page-title">财务管理</h2>
                    
                    <div class="stats-grid">
                        <div class="stat-card">
                            <div class="stat-icon" style="background-color: var(--primary-color);">
                                <i class="fas fa-money-bill-wave"></i>
                            </div>
                            <div class="stat-info">
                                <div class="stat-value">¥28,562</div>
                                <div class="stat-label">总收入</div>
                                <div class="stat-change positive">
                                    <i class="fas fa-arrow-up"></i> 15.3% 较上月
                                </div>
                            </div>
                        </div>
                        
                        <div class="stat-card">
                            <div class="stat-icon" style="background-color: var(--success-color);">
                                <i class="fas fa-coins"></i>
                            </div>
                            <div class="stat-info">
                                <div class="stat-value">¥8,562</div>
                                <div class="stat-label">本月收入</div>
                                <div class="stat-change positive">
                                    <i class="fas fa-arrow-up"></i> 8.7% 较上月
                                </div>
                            </div>
                        </div>
                        
                        <div class="stat-card">
                            <div class="stat-icon" style="background-color: var(--warning-color);">
                                <i class="fas fa-hand-holding-usd"></i>
                            </div>
                            <div class="stat-info">
                                <div class="stat-value">¥5,230</div>
                                <div class="stat-label">待提现</div>
                                <div class="stat-change positive">
                                    <i class="fas fa-arrow-up"></i> 12.1% 较上月
                                </div>
                            </div>
                        </div>
                        
                        <div class="stat-card">
                            <div class="stat-icon" style="background-color: var(--accent-color);">
                                <i class="fas fa-file-invoice-dollar"></i>
                            </div>
                            <div class="stat-info">
                                <div class="stat-value">1,258</div>
                                <div class="stat-label">付费内容数</div>
                                <div class="stat-change positive">
                                    <i class="fas fa-arrow-up"></i> 5.4% 较上月
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">交易记录</div>
                            <button class="btn-primary-sm">导出数据</button>
                        </div>
                        <div class="card-body">
                            <div class="table-container">
                                <table>
                                    <thead>
                                        <tr>
                                            <th>交易ID</th>
                                            <th>用户</th>
                                            <th>内容</th>
                                            <th>类型</th>
                                            <th>金额</th>
                                            <th>时间</th>
                                            <th>状态</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>T1002301</td>
                                            <td>派蒙</td>
                                            <td>付费阅读「枫丹剧情预测」</td>
                                            <td>内容购买</td>
                                            <td>¥5.00</td>
                                            <td>2023-11-05 13:45</td>
                                            <td><span class="status status-active">已完成</span></td>
                                        </tr>
                                        <tr>
                                            <td>T1002300</td>
                                            <td>旅行者</td>
                                            <td>米哈游全角色立绘合集.zip</td>
                                            <td>资源下载</td>
                                            <td>¥15.00</td>
                                            <td>2023-11-05 12:20</td>
                                            <td><span class="status status-active">已完成</span></td>
                                        </tr>
                                        <tr>
                                            <td>T1002299</td>
                                            <td>甘雨</td>
                                            <td>提现申请</td>
                                            <td>用户提现</td>
                                            <td>¥1,200.00</td>
                                            <td>2023-11-05 11:32</td>
                                            <td><span class="status status-pending">审核中</span></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 数据报表页面 -->
                <div class="page" id="reports-page">
                    <h2 class="page-title">数据报表</h2>
                    
                    <div class="charts-row">
                        <div class="chart-container">
                            <canvas id="userGrowthChart"></canvas>
                        </div>
                        <div class="chart-container">
                            <canvas id="revenueChart"></canvas>
                        </div>
                    </div>
                </div>
                
                <!-- 系统设置页面 -->
                <div class="page" id="settings-page">
                    <h2 class="page-title">系统设置</h2>
                    
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">基本设置</div>
                        </div>
                        <div class="card-body">
                            <div class="form-group">
                                <label class="form-label">网站名称</label>
                                <input type="text" class="form-control" value="须弥社区">
                            </div>
                            <div class="form-group">
                                <label class="form-label">网站描述</label>
                                <textarea class="form-control" rows="3">一个专注于米哈游游戏内容的分享社区</textarea>
                            </div>
                            <button class="btn-primary-sm">保存设置</button>
                        </div>
                    </div>
                    
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">管理员设置</div>
                        </div>
                        <div class="card-body">
                            <div class="form-group">
                                <label class="form-label">当前管理员</label>
                                <input type="text" class="form-control" value="admin" readonly>
                            </div>
                            <div class="form-group">
                                <label class="form-label">新密码</label>
                                <input type="password" class="form-control" placeholder="请输入新密码">
                            </div>
                            <div class="form-group">
                                <label class="form-label">确认新密码</label>
                                <input type="password" class="form-control" placeholder="请再次输入新密码">
                            </div>
                            <button class="btn-primary-sm">修改密码</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 模拟管理员账户
        const adminAccounts = [
            { username: 'admin', password: 'admin123', name: '超级管理员' },
            { username: 'moderator', password: 'mod123', name: '内容管理员' }
        ];

        // 页面加载时检查登录状态
        document.addEventListener('DOMContentLoaded', function() {
            // 默认显示前端APP
            showApp();
            
            // 管理员入口按钮点击事件
            document.getElementById('admin-entry-btn').addEventListener('click', function() {
                showLoginPage();
            });
            
            // 个人中心的管理员入口点击事件
            document.querySelector('#profile-page .card-body div:nth-last-child(2)').addEventListener('click', function() {
                showLoginPage();
            });
            
            // 登录表单提交
            document.getElementById('admin-login-form').addEventListener('submit', function(e) {
                e.preventDefault();
                const username = document.getElementById('username').value;
                const password = document.getElementById('password').value;
                
                // 验证管理员账户
                const admin = adminAccounts.find(acc => acc.username === username && acc.password === password);
                
                if (admin) {
                    // 登录成功
                    localStorage.setItem('adminLoggedIn', 'true');
                    localStorage.setItem('currentAdmin', JSON.stringify(admin));
                    showAdminPanel(admin);
                } else {
                    // 登录失败
                    document.getElementById('login-alert').style.display = 'block';
                }
            });
            
            // 退出登录
            document.getElementById('admin-logout-btn').addEventListener('click', function() {
                localStorage.removeItem('adminLoggedIn');
                localStorage.removeItem('currentAdmin');
                showApp();
            });
            
            // 前端APP页面切换
            const navItems = document.querySelectorAll('.nav-item');
            const pages = document.querySelectorAll('.page');
            
            navItems.forEach(item => {
                item.addEventListener('click', function() {
                    const targetPage = this.getAttribute('data-page');
                    
                    // 更新导航状态
                    navItems.forEach(nav => nav.classList.remove('active'));
                    this.classList.add('active');
                    
                    // 显示对应页面
                    pages.forEach(page => page.classList.remove('active'));
                    document.getElementById(targetPage).classList.add('active');
                });
            });
            
            // 后台管理系统页面切换
            const adminNavItems = document.querySelectorAll('.nav-links li');
            const adminPages = document.querySelectorAll('.admin-content .page');
            
            adminNavItems.forEach(item => {
                item.addEventListener('click', function() {
                    const targetPage = this.getAttribute('data-page');
                    
                    // 更新导航状态
                    adminNavItems.forEach(nav => nav.classList.remove('active'));
                    this.classList.add('active');
                    
                    // 显示对应页面
                    adminPages.forEach(page => page.classList.remove('active'));
                    document.getElementById(targetPage).classList.add('active');
                });
            });
            
            // 初始化图表
            initCharts();
        });
        
        // 显示登录页面
        function showLoginPage() {
            document.getElementById('login-page').style.display = 'flex';
            document.getElementById('app-container').style.display = 'none';
            document.getElementById('admin-container').style.display = 'none';
        }
        
        // 显示前端APP
        function showApp() {
            document.getElementById('login-page').style.display = 'none';
            document.getElementById('app-container').style.display = 'block';
            document.getElementById('admin-container').style.display = 'none';
        }
        
        // 显示管理员面板
        function showAdminPanel(admin) {
            document.getElementById('login-page').style.display = 'none';
            document.getElementById('app-container').style.display = 'none';
            document.getElementById('admin-container').style.display = 'flex';
            
            // 更新用户信息
            document.querySelector('.user-name').textContent = admin.name;
            document.querySelector('.user-role').textContent = 
                admin.username === 'admin' ? '超级管理员' : '内容管理员';
            document.querySelector('.admin-user-avatar').textContent = admin.name.charAt(0);
        }
        
        // 前端APP功能
        function unlockContent(elementId) {
            const overlay = document.getElementById(elementId);
            overlay.style.display = 'none';
            alert('已成功支付5原石，内容已解锁！');
        }

        function unlockWithPoints(elementId) {
            const lockedContent = document.getElementById(elementId);
            lockedContent.style.display = 'none';
            alert('已成功扣除50积分，内容已解锁！');
        }

        function unlockWithReply(elementId) {
            const lockedContent = document.getElementById(elementId);
            const input = lockedContent.querySelector('.reply-input');
            
            if (input.value.trim() === '') {
                alert('请输入回复内容');
                return;
            }
            
            lockedContent.style.display = 'none';
            alert('回复成功，内容已解锁！');
        }

        function purchaseDownload() {
            alert('已成功支付15原石，开始下载资源...');
        }
        
        // 初始化图表
        function initCharts() {
            // 流量统计图表
            const trafficCtx = document.getElementById('trafficChart').getContext('2d');
            new Chart(trafficCtx, {
                type: 'line',
                data: {
                    labels: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月'],
                    datasets: [{
                        label: '用户访问量',
                        data: [12000, 19000, 15000, 25000, 22000, 30000, 28000, 35000, 32000, 40000, 38000],
                        borderColor: '#6c5ce7',
                        backgroundColor: 'rgba(108, 92, 231, 0.1)',
                        tension: 0.4,
                        fill: true
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    plugins: {
                        legend: {
                            display: false
                        }
                    }
                }
            });
            
            // 内容类型图表
            const contentCtx = document.getElementById('contentChart').getContext('2d');
            new Chart(contentCtx, {
                type: 'doughnut',
                data: {
                    labels: ['普通帖子', '付费内容', '积分内容', '回复可见'],
                    datasets: [{
                        data: [65, 15, 12, 8],
                        backgroundColor: [
                            '#6c5ce7',
                            '#fd79a8',
                            '#fdcb6e',
                            '#00cec9'
                        ]
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    plugins: {
                        legend: {
                            position: 'bottom'
                        }
                    }
                }
            });
            
            // 用户增长图表
            const userGrowthCtx = document.getElementById('userGrowthChart').getContext('2d');
            new Chart(userGrowthCtx, {
                type: 'bar',
                data: {
                    labels: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月'],
                    datasets: [{
                        label: '新增用户',
                        data: [1200, 1900, 1500, 2500, 2200, 3000, 2800, 3500, 3200, 4000, 3800],
                        backgroundColor: '#a29bfe'
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false
                }
            });
            
            // 收入图表
            const revenueCtx = document.getElementById('revenueChart').getContext('2d');
            new Chart(revenueCtx, {
                type: 'line',
                data: {
                    labels: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月'],
                    datasets: [{
                        label: '收入(元)',
                        data: [5200, 7900, 6500, 12500, 10200, 15000, 12800, 17500, 16200, 20500, 18500],
                        borderColor: '#fd79a8',
                        backgroundColor: 'rgba(253, 121, 168, 0.1)',
                        tension: 0.4,
                        fill: true
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false
                }
            });
        }
    </script>
</body>
</html>